#ifndef DEF_QGLVIEW
#define DEF_QGLVIEW
 
#include <QApplication>
#include <QtGui>
#include "QDessinGL.h"
#include "QTools.h"

class QGLView : public QWidget
{

	Q_OBJECT

  private:
	QMenuBar *menuBar;
	QDessinGL *visu;
	QTools* tools;
	QProgressBar *progressBar;
	QString fichier;
	QString masque;

	void createActions();
	void createMenus();

	QMenu *fileMenu;
	QActionGroup *alignmentGroup;
	QAction *openAct;
	QAction *openMaskAct;
	QAction *exitAct;
	QLabel *infoLabel;
        QVBoxLayout *mainLayout;

  private slots:
  	void open();
	void openMask();
	
  public:
        QGLView();
	~QGLView();
        void closeEvent(QCloseEvent *event);
        void setTools(QTools*);
        QDessinGL* getVisu(){return visu;}
	QTools* getTools(){return tools;}

	


};
 
#endif

